package com.lottery.dao;

import com.lottery.pojo.TableMachines;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface MachineDao {

    void addOrUpdateMachine(String machine_number, String password, String api_token, String created_at, String updated_at);

    void deleteMachine(int id);

    List<TableMachines> getMachines(String machineNumber);

    void updateMachineCommission(String machine_number, String commission);
}
